package router

import (
	"github.com/gin-gonic/gin"
	"novel-graph-mgr/handler"
)

func Init() *gin.Engine {
	// 1.创建路由
	r := gin.Default()
	r.POST("user_login", handler.Login)
	r.GET("novel_list", handler.NodelList)
	r.GET("novel_detail", handler.NodelDetail)
	return r
}
